package com.zy.explore.sys.interfaces.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * description 部门树VO
 *
 * @author 🇨🇳中国印🇨🇳
 * @date 2021年07月11日 00:10
 */
@ApiModel("部门树VO")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DeptTreeVO {

    @ApiModelProperty("部门ID")
    private Long id;

    @ApiModelProperty("树节点名称")
    private String label;

    @ApiModelProperty("子节点集合")
    private List<DeptTreeVO> children;

    /**
     * 递归查询树时结束递归标记
     */
    @JsonIgnore
    private Boolean breakFlag;
}
